<?php

declare(strict_types=1);

namespace App\CustHub\Amqp\Producers;

use App\CustHub\Dto\SyncTaskDto;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;

#[Producer(exchange: "sync_task",routingKey: 'sync_task')]
class SyncTaskProducers extends ProducerMessage
{
    public function __construct(SyncTaskDto $dto)
    {
        $this->payload = $dto->__toArray();
    }
}